#ifndef SDE_H
#define SDE_H

#include <QtGui/QMainWindow>
#include "ui_SDE.h"
#include <QGridLayout>
#include "graphwidget.h"
#include "node.h"
#include "edge.h"

class SDE : public QMainWindow
{
	Q_OBJECT

public:
	SDE(QWidget *parent = 0, Qt::WFlags flags = 0);
	~SDE();
	bool questionSave();
	QString filename;
private:
	Ui::SDEClass ui;
	Node *node;
	GraphWidget * graph;
	//void setEdit(bool flag);

private slots:
	void slot_actionNode();
	void slot_actionEdge();
	void slot_actionDelete();
	void slot_actionOpen();
	void slot_actionSave();
	void slot_actionSaveAs();
	void slot_actionCreate();
	void slot_actionHelp();
	void slot_actionEnd();
	void slot_actionLoad();
	void slot_actionState();
	void slot_actionSub();
	void slot_actionComment();
	void slot_actionEdit();
	//void slot_Save();
	//void slot_Cancel();
	void slot_Export();
};

#endif // SDE_H
